<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="FBGraph.Web.Mvc.FBGraphViewPage<IEnumerable<FBGraph.ExtendedPermission>>" %>

<asp:Content ID="t" ContentPlaceHolderID="TitleContent" runat="server">Extended Permissions</asp:Content>

<asp:Content ID="c" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Extended Permissions</h2>
    
    <ul>
        <% foreach (var ep in Model) { %>
        <li>
            <% if ((FbContext.ExtendedPermissions & ep) == ep) { %>
                <span><%= ep %></span>
            <% } else { %>
                <%= Html.ActionLink(ep.ToString(), "auth", new { scope = ep }) %>
            <% } %>
        </li>
        <% } %>
    </ul>

</asp:Content>
